package com.sz.biz.logistics.serialno.dto;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * Function: 文件导入单号结果DTO <br>
 * Author: Johnboy <br>
 * Date: 2017-12-10 20:48:00
 */
@Data
public class SerialNoImportFileResultDto {

    private List<SerialNoImportSuccessResultDto> success =new ArrayList<>();
    private List<SerialNoImportResultDto> result = new ArrayList<>();


    private int total;
    private int errorNumber;
    private int successNumber;

    public int getTotal() {

        return result.size();
    }

    public int getErrorNumber() {
        return result.size() - success.size();
    }

    public int getSuccessNumber() {
        return success.size();
    }
}
